package com.shimmer.beenFactory;

/**
 * @Package PACKAGE_NAME
 * @Author shimmer
 * @Date 2020/8/10 13:49
 * @TODO
 */
public class UserServiceImpl implements UserService {
    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void register(User user) {
        userDao.save(user);
    }

    @Override
    public void login(String name, String pwd) {
        userDao.queryUserByNameAndPassword(name,pwd);
    }
}
